package com.h2cloud.rpc._4_rpc_framework;

/**
 * @Package: com.h2cloud.rpc._4_rpc_framework
 * @ClassName: RpcConsumer
 * @Author: h2cloud
 * @CreateTime: 2022/8/14 12:35 下午
 * @Description:
 */
public class RpcConsumer {

	public static void main(String[] args) throws Exception {
		HelloService service = RpcFramework.refer(HelloService.class, "127.0.0.1", 1234);
		for (int i = 0; i < 5; i++) {
			String hello = service.hello("World" + i);
			System.out.println(hello);
			Thread.sleep(1000);
		}
	}

}
